import request from '@/utils/request'

// 查询维修列表
export function listSuggest(query) {
  return request({
    url: '/suggest/suggest/list',
    method: 'get',
    params: query
  })
}

// 查询维修详细
export function getSuggest(id) {
  return request({
    url: '/suggest/suggest/' + id,
    method: 'get'
  })
}

// 新增维修
export function addSuggest(data) {
  return request({
    url: '/suggest/suggest',
    method: 'post',
    data: data
  })
}

// 修改维修
export function updateSuggest(data) {
  return request({
    url: '/suggest/suggest',
    method: 'put',
    data: data
  })
}

export function finishSuggest(data) {
  return request({
    url: '/suggest/suggest/finish',
    method: 'post',
    data: data
  })
}
// 增加维修
export function reviewSuggest(data) {
  return request({
    url: '/suggest/suggest/review',
    method: 'post',
    data: data
  })
}
// 删除维修
export function delSuggest(id) {
  return request({
    url: '/suggest/suggest/' + id,
    method: 'delete'
  })
}
